package com.ihunanren.biz.weixin.domain;

/**
 * @author kalman03
 */
public enum WeixinEventType {

	subscribe("subscribe"), unsubscribe("unsubscribe"), click("click");

	private String type;

	private WeixinEventType(String type) {
		this.type = type;
	}

	public String getType() {
		return type;
	}

	public static WeixinEventType getType(String type){
		for(WeixinEventType eventType : WeixinEventType.values()){
			if(eventType.getType().equals(type)){
				return eventType;
			}
		}
		return null;
	}
}
